package com.constant;

/**
 * @author 罗俊华
 * @date 2021/8/27 - 3:29 下午
 */
public interface MessageType {

    int LOGIN_REQUEST = 0;
    int LOGIN_RESPONSE = 1;
    int CHAT_REQUEST = 2;
    int CHAT_RESPONSE = 3;
    int GROUP_CREATE_REQUEST = 4;
    int GROUP_CREATE_RESPONSE = 5;
    int GROUP_JOIN_REQUEST = 6;
    int GROUP_JOIN_RESPONSE = 7;
    int GROUP_QUIT_REQUEST = 8;
    int GROUP_QUIT_RESPONSE = 9;
    int GROUP_CHAT_REQUEST = 10;
    int GROUP_CHAT_RESPONSE = 11;
    int GROUP_MEMBERS_REQUEST = 12;
    int GROUP_MEMBERS_RESPONSE = 13;
    int EXIT_SERVER = 14;
    int PING_REQ = 15;

    // Rpc 调用的消息类型
    int RPC_MESSAGE_REQ = 16;
    int RPC_MESSAGE_RESP = 17;
}
